package com.qf.mapper;

import com.qf.model.Device;
import com.qf.model.TTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskMapper {

    public int add(TTask task);

    public TTask findById(@Param("id") int id);

    public int edit(TTask task);

    public int delete(@Param("id") int id);

    //当前页结果
    public List<TTask> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString,@Param("userId")Integer userId);


    //总记录数
    public Long count(String queryString,@Param("userId")Integer userId);


    //当前页结果
    public List<TTask> findPage2(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString,@Param("producterId")Integer producterId);


    //总记录数
    public Long count2(String queryString,@Param("producterId")Integer producterId);


}
